/**
 *经销商信息维护
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取列表
export const getCompany = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/CompanyInfo/getCompany`, {params});
// 删除
// export const deleteRole = (id) => axios.delete(`${SERVER.DMSCLOUD_BASEDATA}/basedata/roles/deleteById/${id}`, {id: Number(id)} );
//新增
export const addCompany = params => axios.post(`${SERVER.DMSCLOUD_BASEDATA}/CompanyInfo/addCompany`,  params );
//查看管理员信息
export const getCompanyId = companyId => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/CompanyInfo/getCompany/${companyId}`);

